package Day30;

public class Emmer3 {
    public static void main(String[] args) {

        Emmer4[] values = Emmer4.values();
        System.out.println("=====所有星期的信息如下=====");
        for(int i = 0; i < values.length; i++){
            System.out.println(values[i]);
        }

    }
}

enum Emmer4{
    MONDAY("星期一"),TUESDAY("星期二"),WEDNESDAY("星期三"),THURSDAY("星期四"),
    FRIDAY("星期五"),SATDAY("星期六"),SUNDAY("星期天");
    private String name;
    private Emmer4(String name){
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
